

            


            
using System;
using System.Collections.Generic;
using System.Web;
namespace DatabaseComponent
{
     public partial class Groups
     {

         List<Rules> _lstRules = null;

         public List<Rules> lstRules
         {
             get {

                 GroupRulesDB objGroupRulesDB = new GroupRulesDB(ConnectionStrings.LMS);
                 List<GroupRules> lstGroupRules1 = objGroupRulesDB.getGroupRulesByGroupID(ID);

                 if (lstGroupRules1.Count == 0)
                     return new List<Rules>();

                 _lstRules = new List<Rules>();
                 foreach (GroupRules gr in lstGroupRules1)
                 {
                     if (gr.objRules.ID != -1)
                     {
                         _lstRules.Add(gr.objRules);
                     }
                 }
                

                 
                 
                 
                 return _lstRules; }
            
         }



         List<GroupRules> _lstGroupRules = null;

         public List<GroupRules> lstGroupRules
         {
             get {

                 if (_lstGroupRules == null)
                 {
                     GroupRulesDB objGroupRulesDB = new GroupRulesDB(ConnectionStrings.LMS);
                     List<GroupRules> lstGroupRules1 = objGroupRulesDB.getGroupRulesByGroupID(ID);

                     if (lstGroupRules1.Count == 0)
                         return new List<GroupRules>();


                     _lstGroupRules = lstGroupRules1;

                 }
                 
                 
                 
                 
                 
                 
                 
                 return _lstGroupRules; }
            
         }



         List<PersonGroups> _lstPersonGroups = null;

         public List<PersonGroups> lstPersonGroups
         {
             get {

                 if (_lstPersonGroups == null)
                 {
                     PersonGroupsDB objPersonGroupsDB = new PersonGroupsDB(ConnectionStrings.LMS);

                     List<PersonGroups> lstPersonGroups1 = objPersonGroupsDB.getPersonGroupsByGroupsID(ID);

                     if (lstPersonGroups1.Count == 0)
                         return new List<PersonGroups>();

                     _lstPersonGroups = lstPersonGroups1;


                 }
                 
                 
                 
                 
                 
                 
                 return _lstPersonGroups; }
            
         }




        


            //Write any additional methods or properties here 
            //Don't modify any genrated classes
     }
}
